package com.qujia.station.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.qujia.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单支付对象 pay_order
 *
 * @author qujia
 * @date 2021-01-12
 */
public class OilPayOrderSum extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 油站名称 */

    private String stationName;

    /** 油企id */
    private Long stationId;
    /** 油企id */
    private Long enterpriseId;
    /** 油企名称 */

    private String enterpriseName;


//    @Excel(name = "支付状态",readConverterExp="1=支付成功,3=线上退款")
    /** 状态(0未支付，1，已支付) */
    private String status;



    /** 油品名称 */
    @Excel(name = "油品名称")
    private String oilName;

    @Excel(name = "订单数")
    private Integer countNum;

    /** 油品价格 */
    @Excel(name = "油品价格(元)")
    private BigDecimal oilPirce;

    /** 油品类型（1.柴油 2 汽油） */
    private String oilType;

    /** 加油升数 */
    @Excel(name = "数量(L/kg)")
    private BigDecimal orderLiters;

    @Excel(name = "应付金额(元)")
    /** 应收金额 */
    private BigDecimal receivableAmt;
    /** 实收金额 */
    @Excel(name = "实付金额(元)")
    private BigDecimal amt;
    /** 到账金额 */
    private BigDecimal receivedAmt;

    @Excel(name = "优惠金额(元)")
    /** 优惠金额 */
    private BigDecimal discountAmt;
    @Excel(name = "优惠券金额(元)")
    /** 优惠券金额 */
    private BigDecimal discountCouponAmt;

    @Excel(name = "优惠合计金额(元)")
    /** 优惠券金额 */
    private BigDecimal sumDiscount;


    public BigDecimal getSumDiscount() {
        return sumDiscount;
    }

    public void setSumDiscount(BigDecimal sumDiscount) {
        this.sumDiscount = sumDiscount;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOilName() {
        return oilName;
    }

    public void setOilName(String oilName) {
        this.oilName = oilName;
    }

    public BigDecimal getOilPirce() {
        return oilPirce;
    }

    public void setOilPirce(BigDecimal oilPirce) {
        this.oilPirce = oilPirce;
    }

    public String getOilType() {
        return oilType;
    }

    public void setOilType(String oilType) {
        this.oilType = oilType;
    }

    public BigDecimal getOrderLiters() {
        return orderLiters;
    }

    public void setOrderLiters(BigDecimal orderLiters) {
        this.orderLiters = orderLiters;
    }

    public BigDecimal getReceivableAmt() {
        return receivableAmt;
    }

    public void setReceivableAmt(BigDecimal receivableAmt) {
        this.receivableAmt = receivableAmt;
    }

    public BigDecimal getAmt() {
        return amt;
    }

    public void setAmt(BigDecimal amt) {
        this.amt = amt;
    }

    public BigDecimal getReceivedAmt() {
        return receivedAmt;
    }

    public void setReceivedAmt(BigDecimal receivedAmt) {
        this.receivedAmt = receivedAmt;
    }

    public BigDecimal getDiscountAmt() {
        return discountAmt;
    }

    public void setDiscountAmt(BigDecimal discountAmt) {
        this.discountAmt = discountAmt;
    }

    public BigDecimal getDiscountCouponAmt() {
        return discountCouponAmt;
    }

    public void setDiscountCouponAmt(BigDecimal discountCouponAmt) {
        this.discountCouponAmt = discountCouponAmt;
    }

    public Integer getCountNum() {
        return countNum;
    }

    public void setCountNum(Integer countNum) {
        this.countNum = countNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stationId", getStationId())
            .append("stationName", getStationName())
            .append("status", getStatus())
            .append("oilName", getOilName())
            .append("oilPirce", getOilPirce())
            .append("oilType", getOilType())
            .append("orderLiters", getOrderLiters())
            .append("amt", getAmt())
            .append("receivableAmt", getReceivableAmt())
            .append("receivedAmt", getReceivedAmt())
            .append("discountAmt", getDiscountAmt())
            .append("discountCouponAmt", getDiscountCouponAmt())
            .toString();
    }
}
